package application;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.scene.paint.Color;
import javafx.scene.shape.Circle;
import javafx.stage.Stage;

public class ShowCircleCentered extends Application {

	@Override
	public void start(Stage primaryStage) {
		
		Pane pane = new Pane();

		
		Circle circle = new Circle();
		circle.centerXProperty() .bind(pane.widthProperty().divide(2));
		circle.centerYProperty().bind(pane.heightProperty().divide(2));

		circle.setRadius(50);
		circle.setStroke(Color.BLACK);
		circle.setFill(Color.WHITE);

		pane.getChildren().add(circle);
		
		Scene secne = new Scene(pane, 200 ,200);
		primaryStage.setTitle("ShowCircle");
		primaryStage.setScene(secne);
		primaryStage.show();
	}
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Application.launch(args);
		
	}
	
}
